<div class="form-group">
      <label class="col-sm-2 control-label">{{"日志文件"|T}}</label>
      <div class="col-sm-10">
         <input type="text" class="form-control" value="{{Form "log_file" "access_local.log"}}" name="log_file" required="required">
         <div class="help-block">{{"日志文件保存路径"|T}}</div>
      </div>
    </div>
    <!-- <div class="form-group">
      <label class="col-sm-2 control-label">{{"日志格式"|T}}</label>
      <div class="col-sm-10">
         <input type="text" class="form-control" name="log_format" value="{{Form "log_format" "{combined}"}}" id="log_format">
         <div class="help-block">
             {{(T "日志内容格式，支持%s占位符%s。除此之外，还支持以下预定义组合占位符" "<a href='javascript:;' onclick=\"showRequestPlaceholders('#log_format')\">" "</a>")|ToHTML}}
             <ul>
                 <li>
                     <strong>{common}</strong>
                    ({{"默认"|T}})<br />
                    <code>{remote} - {user} [{when}] "{method} {uri} {proto}" {status} {size}</code>
                </li>
                 <li>
                     <strong>{combined}</strong>
                     ({{"在{common}的基础上追加以下占位符"|T}})<br />
                     <code>"{&gt;Referer}" "{&gt;User-Agent}"</code>
                </li>
                {{/* nginx: {remote} | [{when}] | {host} | "{method} {uri} {proto}" | {status} | {size} | "{&gt;Referer}" | "{&gt;User-Agent}" */}}
             </ul>
        </div>
      </div>
    </div> -->
    <div class="form-group">
      <label class="col-sm-2 control-label">{{"日志文件轮转"|T}}</label>
      <div class="col-sm-10">
        <table class="table table-bordered no-margin-bottom">
            <tbody>
                <tr>
                    <td><label class="control-label">{{"文件最大尺寸"|T}}</label></td>
                    <td>
                        <span class="input-group">
                        <input type="number" class="form-control" value="{{Val "log_rotate_size" "10240"}}" name="log_rotate_size" min="0">
                        <span class="input-group-addon">MB</span>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td><label class="control-label">{{"文件保存天数"|T}}</label></td>
                    <td>
                        <span class="input-group">
                        <input type="number" class="form-control" value="{{Val "log_rotate_age" "90"}}" name="log_rotate_age" min="0">
                        <span class="input-group-addon">{{"天"|T}}</span>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td><label class="control-label">{{"保留文件数量"|T}}</label></td>
                    <td>
                        <input type="number" class="form-control" value="{{Val "log_rotate_keep" "1"}}" name="log_rotate_keep" min="1">
                    </td>
                </tr>
                <tr>
                    <td><label class="control-label">{{"文件是否压缩"|T}}</label></td>
                    <td>
                        <div class="checkbox checkbox-primary checkbox-inline">
                            <input type="checkbox" id="log_rotate_compress" name="log_rotate_compress" value="1">
                            <label for="log_rotate_compress">{{"压缩"|T}}</label>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">{{"IP屏蔽(匿名)"|T}}</label>
      <div class="col-sm-10">
        <div class="input-group">
         <span class="input-group-addon">{{"IPv4掩码"|T}}</span>
         <input type="text" class="form-control" name="log_ipmask_v4" min="0" value="{{Val "log_ipmask_v4" ""}}">
         <span class="input-group-addon">{{"IPv6掩码"|T}}</span>
         <input type="text" class="form-control" name="log_ipmask_v6" min="0" value="{{Val "log_ipmask_v6" ""}}">
         </div>
         <div class="help-block">{{"允许屏蔽IP地址以符合公司或法律限制。第一个参数是IPv4地址的掩码(例如<code>255.255.0.0</code>)，第二个参数是IPv6地址的掩码(例如<code>ffff:ffff:ffff:ff00::</code>)。 IPv6掩码是可选的;如果仅屏蔽IPv6，则IPv4掩码可以是空字符串标记。"|T|ToHTML}}</div>
      </div>
    </div>